package com.hl.toolkit.pay.controller;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;

public class BaseController extends AbstractController {

	@Value("${spring.profiles.active:dev}")
	protected String profiles;

	@Value("${iptvVersion:}")
	protected String iptvVersion;

	public String getJspPagePath(String appCode) {
		if (StringUtils.isNotEmpty(iptvVersion)) {
			return appCode + "_" + StringUtils.trimToEmpty(iptvVersion);
		}
		return appCode;
	}
	

	public String getCookieName(String name) {
		return name;
	}

}
